﻿using System;
using Syncfusion.Windows.PdfViewer;

namespace PdfSdk.PdfViewer
{
    public class PdfViewerFreeTextAnnotationWrapper : AnnotationWrapper
    {
        public PdfViewerFreeTextAnnotationWrapper(object obj) : base(obj)
        {
        }

        public int Id => Convert.ToInt32(GetPropertyValue());

        public FreeTextAnnotationTextBox TextBox => GetPropertyValue() as FreeTextAnnotationTextBox;

        public bool isPopUpWindowOpened => Convert.ToBoolean(GetFieldValue());

        public PdfViewerFreeTextSettings Settings => GetPropertyValue() as PdfViewerFreeTextSettings;

        public System.Windows.Media.FontFamily FontFamily
        {
            get => GetPropertyValue() as System.Windows.Media.FontFamily;
            set => SetFieldValue(value);
        }
    }
}
